<?php


$shouts = new shout;


if (isset($_POST['action']) && $_POST['action'] == "save" && $_SESSION['logged'] && !empty($_POST['shout_text'])) {

	$active_character = $player->get( 0, "", 1, $_SESSION['uid']);

	$active_character = $active_character[0];

	$shout_text = $_POST['shout_text'];

	
	$shouts->save(0, $active_character['player_id'], "Now()", $shout_text);
	
} 



$all_shouts = $shouts->get();

$smarty->assign('shouts', $all_shouts);

$smarty->display('shouts.tpl', $_SESSION['uid']);



?> 
